package main

import "fmt"

func main() {
	//fmt.Println(10 / -3)
	//fmt.Println(10 % -3)
	//fmt.Println(10 % 3)
	//fmt.Println(-10 % -3)
	//fmt.Println(-10 % 3)
	//res := fmt.Sprintf("%[3]*.[2]*[1]f", 12.0, 2, 6)  // 等价与 fmt.Sprintf("%6.2f", 12.0)
	//fmt.Println(res)
	//fmt.Println(1.2+2.5)
	//darr := [...]int{57, 89, 90, 82, 100, 78, 67, 69, 59}
	//dslice := darr[2:5]
	//fmt.Println("array before",darr)
	//for i := range dslice {
	//	fmt.Println(i)
	//	dslice[i]++
	//}
	//fmt.Println("array after",darr)
	//arr := [3]int{1,2,3}
	//a:=arr[:]
	//fmt.Printf("%T",a)
	//a[0]=10
	//fmt.Println(arr)
	//s:="asdfg"
	//v := s[0]
	//fmt.Printf("%T--%v\n",v,string(v))
	//sl := []int{1,2,3}
	//a:=2
	//fmt.Println()
	//if 1<a&&a<10{
	//
	//}
	//fmt.Println()
	a := [...]string{"a", "b", "c", "d"}
	for i := range a {
		fmt.Println("Array item", i, "is", a[i])
	}

}
